﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CarLoanSystem
{
    public partial class panelReportBoss : UserControl
    {
        public panelReportBoss()
        {
            InitializeComponent();
            this.panelReportDebtInfo.Hide();
            this.panelReportPaymentAmount.Hide();
            this.panelReportIncome.Hide();
        }

        public void InitBtn() 
        {
            this.btnHistoryLoanAmount.Show();
            this.btnDebt.Show();
            this.btnIncome.Show();
        }

        public void InitPanelReport() 
        {
            this.panelReportDebtInfo.Hide();
            this.panelReportPaymentAmount.Hide();
            this.panelReportIncome.Hide();
        }

        private void btnHistoryLoanAmount_Click(object sender, EventArgs e)
        {
            this.panelReportPaymentAmount.Show();
            this.panelReportDebtInfo.Hide();
            this.panelReportIncome.Hide();
            this.btnHistoryLoanAmount.Hide();
            this.btnDebt.Hide();
            this.btnIncome.Hide();
        }

        private void btnDebt_Click(object sender, EventArgs e)
        {
            this.panelReportDebtInfo.Show();
            this.panelReportPaymentAmount.Hide();
            this.panelReportIncome.Hide();
            this.btnHistoryLoanAmount.Hide();
            this.btnDebt.Hide();
            this.btnIncome.Hide();
        }

        private void btnIncome_Click(object sender, EventArgs e)
        {
            this.panelReportDebtInfo.Hide();
            this.panelReportPaymentAmount.Hide();
            this.btnHistoryLoanAmount.Hide();
            this.btnDebt.Hide();
            this.btnIncome.Hide();
            this.panelReportIncome.Show();
        }
    }
}
